import request from "@/utils/request";
/**
 * 根据id获取场馆信息
 * @returns {*}
 */

//获取列表数据
export function trainCostList(params) {
  return request({
    url: "/systemj/expenses/expenses",
    method: "get",
    params,
  });
}

//新建
export function trainCostAdd(data) {
  return request({
    url: "/systemj/expenses/addTrainExpense",
    method: "post",
    data,
  });
}

//编辑
export function trainCostUpdate(data) {
  return request({
    url: "/systemj/expenses/editExpenses",
    method: "put",
    data,
  });
}

//删除
export function trainCostDel(data) {
  return request({
    url: "/systemj/expenses/" + data.ids,
    method: "DELETE",
  });
}

// 获取酒店导入模板
export function trainCostImport(params) {
  return request({
    url: "/systemj/expenses/imporTemplate",
    method: "get",
    params,
  });
}

// 导入酒店数据
export function trainCostImportAdd(data) {
  return request({
    url: "/systemj/expenses/importHotels",
    method: "post",
    data,
  });
}
